package com.caxxb.dao;

import com.caxxb.entity.Game;
import com.caxxb.entity.Order;
import com.caxxb.entity.OrderPojo;
import com.caxxb.util.PageData;

import java.util.List;

public interface OrderDao {

    boolean addToOrder(Game game,int userid,String conversion_code);

    PageData<OrderPojo> getOrdersByUserId(int userid, int pageNo, int pageSize);

    PageData<OrderPojo> queryOrderByPage(int pageNo, int pageSize, String keywords);

    List<Order> CheckOrderByUserId(int userid,int gameid );

    OrderPojo getOrderByOrderId(int orderid);

    boolean delOrderByOrderId(int orderid);
}